<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>科普文章 - 女性生理期记录小程序</title>
  <!-- 引入Wot Design Uni样式 -->
  <link rel="stylesheet" href="https://unpkg.com/wot-design-uni/components/dist/wot-design.css">
  <style>
    :root {
      --primary-color: #FF69B4;
      --primary-light: #FFB6C1;
      --background-light: #FFF0F5;
      --white: #FFFFFF;
    }
    
    body {
      margin: 0;
      padding: 0;
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background-color: var(--background-light);
      color: #333;
    }
    
    .container {
      padding: 0 0 60px;
      max-width: 375px;
      margin: 0 auto;
    }
    
    .header {
      background-color: var(--primary-color);
      color: white;
      padding: 16px;
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .header-title {
      font-size: 18px;
      font-weight: bold;
    }
    
    .search-bar {
      background-color: white;
      margin: 16px;
      border-radius: 24px;
      display: flex;
      align-items: center;
      padding: 8px 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .search-icon {
      color: #999;
      margin-right: 8px;
    }
    
    .search-input {
      flex: 1;
      border: none;
      outline: none;
      font-size: 14px;
      color: #333;
      background-color: transparent;
    }
    
    .search-input::placeholder {
      color: #999;
    }
    
    .category-tabs {
      display: flex;
      overflow-x: auto;
      background-color: white;
      padding: 12px 8px;
      margin-bottom: 16px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    
    .category-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .category-tab {
      padding: 8px 16px;
      margin: 0 4px;
      white-space: nowrap;
      font-size: 14px;
      color: #666;
      border-radius: 16px;
      background-color: #f5f5f5;
    }
    
    .category-tab.active {
      background-color: var(--primary-color);
      color: white;
      font-weight: bold;
    }
    
    .article-section {
      margin-bottom: 24px;
    }
    
    .section-header {
      padding: 0 16px;
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .section-title {
      font-size: 18px;
      font-weight: bold;
      color: #333;
      display: flex;
      align-items: center;
    }
    
    .section-icon {
      margin-right: 8px;
      font-size: 20px;
    }
    
    .section-more {
      font-size: 12px;
      color: #999;
    }
    
    .article-list {
      padding: 0 16px;
    }
    
    .article-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .article-image {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }
    
    .article-content {
      padding: 12px;
    }
    
    .article-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    
    .article-info {
      display: flex;
      align-items: center;
      font-size: 12px;
      color: #999;
    }
    
    .article-tag {
      background-color: var(--background-light);
      color: var(--primary-color);
      padding: 2px 6px;
      border-radius: 4px;
      margin-right: 8px;
    }
    
    .article-author {
      margin-right: 8px;
    }
    
    .article-time {
      flex: 1;
      text-align: right;
    }
    
    .horizontal-article-list {
      display: flex;
      overflow-x: auto;
      padding: 0 16px;
      margin-bottom: 16px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    
    .horizontal-article-list::-webkit-scrollbar {
      display: none;
    }
    
    .horizontal-article-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      width: 200px;
      margin-right: 12px;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .horizontal-article-image {
      width: 100%;
      height: 120px;
      object-fit: cover;
    }
    
    .horizontal-article-content {
      padding: 10px;
    }
    
    .horizontal-article-title {
      font-size: 14px;
      font-weight: bold;
      color: #333;
      margin-bottom: 4px;
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    
    .horizontal-article-info {
      font-size: 10px;
      color: #999;
      display: flex;
      align-items: center;
    }
    
    .video-card {
      position: relative;
    }
    
    .video-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-color);
      font-size: 20px;
    }
    
    .tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      background-color: white;
      border-top: 1px solid #eee;
      height: 60px;
    }
    
    .tab-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: #666;
    }
    
    .tab-item.active {
      color: var(--primary-color);
    }
    
    .tab-icon {
      font-size: 24px;
      margin-bottom: 4px;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <div class="header-title">精选科普文章</div>
    </div>
    
    <div class="search-bar">
      <div class="search-icon">🔍</div>
      <input type="text" class="search-input" placeholder="搜索文章标题关键词">
    </div>
    
    <div class="category-tabs">
      <div class="category-tab active">推荐</div>
      <div class="category-tab">健康知识</div>
      <div class="category-tab">情绪管理</div>
      <div class="category-tab">亲密关系</div>
      <div class="category-tab">生理常识</div>
      <div class="category-tab">女性保健</div>
    </div>
    
    <div class="article-section">
      <div class="section-header">
        <div class="section-title">
          <span class="section-icon">✨</span>
          每日精选
        </div>
        <div class="section-more">查看更多 ></div>
      </div>
      
      <div class="horizontal-article-list">
        <div class="horizontal-article-card">
          <img src="https://picsum.photos/400/250?random=1" alt="文章图片" class="horizontal-article-image">
          <div class="horizontal-article-content">
            <div class="horizontal-article-title">月经期间如何科学缓解痛经问题</div>
            <div class="horizontal-article-info">
              <span class="article-tag">健康</span>
              <span class="article-time">2天前</span>
            </div>
          </div>
        </div>
        
        <div class="horizontal-article-card video-card">
          <img src="https://picsum.photos/400/250?random=2" alt="文章图片" class="horizontal-article-image">
          <div class="video-icon">▶</div>
          <div class="horizontal-article-content">
            <div class="horizontal-article-title">女性健康视频：痛经的科学解释</div>
            <div class="horizontal-article-info">
              <span class="article-tag">视频</span>
              <span class="article-time">1周前</span>
            </div>
          </div>
        </div>
        
        <div class="horizontal-article-card">
          <img src="https://picsum.photos/400/250?random=3" alt="文章图片" class="horizontal-article-image">
          <div class="horizontal-article-content">
            <div class="horizontal-article-title">月经不调的常见原因及调理方法</div>
            <div class="horizontal-article-info">
              <span class="article-tag">调理</span>
              <span class="article-time">3天前</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="article-section">
      <div class="section-header">
        <div class="section-title">
          <span class="section-icon">📚</span>
          热门阅读
        </div>
        <div class="section-more">查看更多 ></div>
      </div>
      
      <div class="article-list">
        <div class="article-card">
          <img src="https://picsum.photos/600/400?random=4" alt="文章图片" class="article-image">
          <div class="article-content">
            <div class="article-title">了解你的身体：月经周期背后的激素变化</div>
            <div class="article-info">
              <span class="article-tag">科普</span>
              <span class="article-author">生理健康顾问</span>
              <span class="article-time">2023-11-15</span>
            </div>
          </div>
        </div>
        
        <div class="article-card">
          <img src="https://picsum.photos/600/400?random=5" alt="文章图片" class="article-image">
          <div class="article-content">
            <div class="article-title">生理期饮食指南：哪些食物应该避免，哪些有助缓解不适</div>
            <div class="article-info">
              <span class="article-tag">饮食</span>
              <span class="article-author">营养师王小美</span>
              <span class="article-time">2023-11-10</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="article-section">
      <div class="section-header">
        <div class="section-title">
          <span class="section-icon">💕</span>
          恋爱攻略
        </div>
        <div class="section-more">查看更多 ></div>
      </div>
      
      <div class="article-list">
        <div class="article-card">
          <img src="https://picsum.photos/600/400?random=6" alt="文章图片" class="article-image">
          <div class="article-content">
            <div class="article-title">如何与伴侣谈论你的生理期，让TA更好地理解和支持你</div>
            <div class="article-info">
              <span class="article-tag">关系</span>
              <span class="article-author">情感顾问</span>
              <span class="article-time">2023-11-08</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <div class="tab-bar">
    <div class="tab-item">
      <div class="tab-icon">📅</div>
      <div>首页</div>
    </div>
    <div class="tab-item active">
      <div class="tab-icon">📊</div>
      <div>科普</div>
    </div>
    <div class="tab-item">
      <div class="tab-icon">👤</div>
      <div>我的</div>
    </div>
  </div>
</body>
</html> 